package com.xzc.scalaL.c01

object PrintDemo {
  def main(args: Array[String]): Unit = {
    var str1: String = "hello"
    var str2: String = " 123"
    println(str1 + str2)

    var name: String = "abc"
    var age: Int = 10
    var sal: Float = 10.67f
    var height: Double = 180.15
    printf("%s %d %.2f %.3f", name, age, sal, height)
    printf(s"\n $name $age $sal")
    println(s"\n ${name} ${age + 10} ${sal * 10}")
  }

}
